package cn.itsource.mapper;

import cn.itsource.domain.TDepartment;
import cn.itsource.query.DepartmentQuery;

import java.util.List;

/**
 * Effect:
 * date: 2022/1/13 16:56
 *
 * @author wangyu
 * @since JDK 1.8
 */
public interface DepartmentMapper {
    List<TDepartment> findAll();

    List<TDepartment> findByQuery(DepartmentQuery query);

    void deleteDeptById(Long id);

    TDepartment findDeptById(Long id);

    void update(TDepartment form);

    void add(TDepartment form);

    void batchDel(List<Long> ids);

    List<TDepartment> findTop();

    List<TDepartment> findChildren(Long id);
}
